
from selenium.webdriver.common.by import By
from V5.utils import UtilsDriver

#对象库
class PageHome:
    def __init__(self):
        self.driver=UtilsDriver.get_driver()
        self.find_login_text=By.CSS_SELECTOR, ".red"

    def find_login_btn(self):
        return self.driver.find_element(*self.find_login_text)
#操作库
class HandleHome:
    def __init__(self):
        self.page_home=PageHome()
    def click_login_btn(self):
        self.page_home.find_login_btn().click()

# 业务层
class ProxyHome:
    def __init__(self):
        self.handleHome=HandleHome()

    def go_login(self):
        self.handleHome.click_login_btn()








